import { $organizational } from '@/api/http';
import { getOrg } from '@/models/orgnization';

export const getOrganizeTree = () => {
    return $organizational.get(`/organization/organizeTree`)
        .then(({data}) => data);
};

export const getOrganizationPage = (params: getOrg) => {
    return $organizational.get(`/organization/organizationPage`, {params})
        .then(({data}) => data);
};